import React, { Component } from 'react'
import PubSub from 'pubsub-js'

import Son from './Son'
export default class Far extends Component {
  render() {
    PubSub.subscribe('xxx', (topic, data) => {
      console.log('far', topic, data)
    })
    return (
      <div>
        Far
        <hr />
        <Son></Son>
      </div>
    )
  }
}
